package com.smartstate.iot.service;

import com.smartstate.iot.entity.TopicLog;
import com.smartstate.iot.vo.TopicUpVo;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;



@Component
@Service
public interface TopicLogService  extends ServiceBase<TopicLog> {


    Boolean getLog(TopicUpVo.Content content);

    Boolean updateByDeviceId(TopicLog topicLog,TopicUpVo.Content content);



//    List<Integer> findDeviceType();

    TopicLog getUpLogType(TopicLog topicLog);

    TopicLog getTypeByDeviceId(String deviceId);

    Integer getDeviceIdOfOne(String deviceId);

    Integer updateLogByDeviceId(String deviceId, TopicLog topicLog);

    void deleteOfDeviceId(String deviceId);
}
